WARNING: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: The size of our stage is from -250 to 250. Numbers bigger than this range will appear OFF the stage.

  • Click Run and look at the stage to see the error.
  • Debug the program so the sprite always appears on the stage.

Hint: What is the largest possible x value on line 3?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)